<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>逻辑处理</title>
</head>
<body>
<?php
session_start();

$_SESSION['prenum'] = $_POST['num'];
$_SESSION['snum'] = $_POST['snum'];
if ($_POST['num'] == $_POST['snum']) {
	header("location:ok.php");
} else if ($_POST['num'] > $_POST['snum']) {
	header("location:larger.php");
} else {
	header("location:smaller.php");
}

?>
</body>
</html>